#!/usr/bin/env bash
echo "开始启动"
echo "复制jar包到/home/apps/jars/jiesen-base"
rm -rf /home/apps/jars/jiesen-base/jiesen-base-1.0-SNAPSHOT.jar
cp /home/jenkins/root/workspace/jiesen-base/target/jiesen-base-1.0-SNAPSHOT.jar /home/apps/jars/jiesen-base/jiesen-base-1.0-SNAPSHOT.jar
export BUILD_ID=dontKillMe
nohup java -Xms246m -Xmx500m -Dhudson.util.ProcessTree.disable=true -jar  /home/apps/jars/jiesen-base/jiesen-base-1.0-SNAPSHOT.jar >/home/apps/jars/jiesen-base/jiesen-base.log 2>&1 &
echo "启动完成"
sleep 10s 
